change event to read attributes of checkbox